package skeleton.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class SkeletonActivity extends Activity {
	
	Button b1, b2, b3;
	Intent procesos;
	Intent cpu;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
		//super.setTitle("Android Skeleton");
				
		b1 = (Button) findViewById(R.id.button1);
		b2 = (Button) findViewById(R.id.button2);
		//b3 = (Button) findViewById(R.id.button3);
			
		procesos = new Intent(this, Procesos.class);
		cpu = new Intent(this, CPU.class);
		
		b1.setOnClickListener(new OnClickListener()
		{
			public void onClick(View v)
			{
				startActivity(procesos);
			}
		}); 
        
		b2.setOnClickListener(new OnClickListener()
		{
			public void onClick(View v)
			{
				startActivity(cpu);
			}
		});
		/*
		b3.setOnClickListener(new OnClickListener()
		{
			public void onClick(View v)
			{
				;
			}
		});  */
    }
}